import {Module} from '@nestjs/common';
import {CommonRedisModule} from './module/common/common.redis.module'
import {CommonRequestModule} from './module/common/common.request.module'
import {CommonMysqlModule} from './module/common/common.mysql.module';
import {ChatModule} from './module/chat.module';
// import {TencentModule} from './module/tencent.module';
// import {VolcesModule} from './module/volces.module';
// import {BaiduModule} from './module/baidu.module';
import {RecordListModule} from './module/record.list.module';
import {UserListModule} from './module/user.list.module';
import {AuthModule} from './module/auth.module';
import {OperateLogModule} from './module/operate.log.module';
import {AppListModule} from './module/app.list.module';
import {Auth2Module} from './module/auth2.module';
import { APP_GUARD } from '@nestjs/core';
import { AuthGuard } from './auth.guard';
import {CommonRedisService} from './service/common.redis.service';
import {ConfigService} from './service/config.service';

@Module({
    imports: [
        CommonRequestModule,
        CommonRedisModule,
        CommonMysqlModule,
        ChatModule,
        RecordListModule,
        UserListModule,
        AuthModule,
        OperateLogModule,
        AppListModule,
        Auth2Module,
    ],
    providers: [
        CommonRedisService,
        {
            provide: APP_GUARD,
            useClass: AuthGuard,
        },
        ConfigService,
    ],
    exports: [ConfigService]
})
export class AppModule {
}
